<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Video extends Model
{
    use HasFactory;
    protected $fillable=['title','thumb','leixing','introduce','shipin','created_at','updated_at'];
    public function expert(){
        return $this->belongsToMany(Expert::class,'middles','video_id','expert_id');
    }
}
